-
Notifications
You must be signed in to change notification settings - Fork 4
feature/RM-9546 update selenium to 4.35.0 #1366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something went sideways, the PR has the old messages and syntax, not the ones from the previous PR.
a1ef5d0
to
190a116
Compare
|
bb7010e
to
709d9f1
Compare
The firefox problem seems to be resolved, my best guess is, that there were not disposed WebSocket connections. |
709d9f1
to
9a63aee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new code looks okay, I got some questions about how things actually work together.
I do have a big request: now that we got a working solution, please split the bidi-stuff into it's own PR and jira ticket (bug?) and let's do this new ticket first. I don't want to hide the semantic changes in a simple Selenium upgrade ticket, in particular since it is not actually dependet on the update and might have been incorrect from the start.
Remotion/Web/Development.WebTesting/BrowserSession/BiDiBrowserLogProvider.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BiDiBrowserLogProvider.cs
Outdated
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BiDiBrowserLogProvider.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BrowserSessionBase.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BrowserSessionBase.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BrowserSessionBase.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BrowserSessionBase.cs
Show resolved
Hide resolved
8629ca0
to
1c41ab8
Compare
044dfa0
to
b493069
Compare
d47800e
to
9940570
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please merge commits where the selenium version gest updated.
Some small design discussions we should desicde before this is done.
Remotion/Web/Development.WebTesting.IntegrationTests/WebTestHelperTest.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BrowserSessionBase.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BiDiBrowserLogProvider.cs
Outdated
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BiDiBrowserLogProvider.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments in PR. We should at least decide to keep the status quo of the PR.
This reverts commit 65c6ea5.
9940570
to
311bb86
Compare
6874047
to
6f7ab7c
Compare
6f7ab7c
to
2f0d992
Compare
/// <summary> | ||
/// Used for timeouts for opening connections and interactions with the browser | ||
/// </summary> | ||
TimeSpan DefaultBidiTimeout => TimeSpan.FromSeconds(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to use default interfce implementations right now.
/// <summary> | ||
/// Used for timeouts for opening connections and interactions with the browser | ||
/// </summary> | ||
TimeSpan DefaultBidiTimeout => TimeSpan.FromSeconds(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expected this information is taken from the browser session.
/// Represents a wrapper around a <see cref="Coypu.BrowserSession"/> which has additional cleanup routines via <see cref="IDisposable.Dispose"/>. | ||
/// </summary> | ||
public interface IBrowserSession : IDisposable | ||
public interface IBrowserSession : IBidiConnectionProvider, IDisposable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expected that the interface would be on BrowserSession, not on the IBrowserSession. I understand why after llooking in the code but it feels wrong. I just don't have a good answer yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, we should be able to change the usage places to BrowserSessionBase or possibly a T that requires IBrowserSession and IBidiConnectionProvider. This would allow us to move IBdiConnectionProvider from the IBrowserSession interface to BrowserSessionBase. I'm not sure which version I would prefer, one's not using interfaces, the other might introduce additional dependencies (type constraints) in the future. Probably the interface version, though (gut feeling).
The change would affect FirefoxBrowserSession.ApplyDefaultWebTestFeatures
and the other two BrowserSession implementations typed to browser.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the round trip, I think this should be straight forward now. 🤞
/// Represents a wrapper around a <see cref="Coypu.BrowserSession"/> which has additional cleanup routines via <see cref="IDisposable.Dispose"/>. | ||
/// </summary> | ||
public interface IBrowserSession : IDisposable | ||
public interface IBrowserSession : IBidiConnectionProvider, IDisposable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, we should be able to change the usage places to BrowserSessionBase or possibly a T that requires IBrowserSession and IBidiConnectionProvider. This would allow us to move IBdiConnectionProvider from the IBrowserSession interface to BrowserSessionBase. I'm not sure which version I would prefer, one's not using interfaces, the other might introduce additional dependencies (type constraints) in the future. Probably the interface version, though (gut feeling).
The change would affect FirefoxBrowserSession.ApplyDefaultWebTestFeatures
and the other two BrowserSession implementations typed to browser.
No description provided.